<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>21_数组方法-fill</title>
    </head>
    <body>
        <script>
            var arr = new Array(4);

            console.log(arr);

            arr.fill(true);

            console.log(arr);
        </script>
    </body>
</html>